package com.hnkywl.sts.action.base;

import com.hnkywl.sts.service.base.ClxxService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;


/**
 * Created by Administrator on 2016/6/22.
 */
@Namespace("/base/clxx")
public class ClxxAction extends SimpleActionSupport {
    private ClxxService clxxService;

    private String clh;
    private String xshth;
    private Date ccrqstart;
    private Date ccrqend;
    private String ccch;
    private String zzyhmc;
    private String clxxzt;
    //分页组件 起始位置
    private int page;
    //分页组件 页面大小
    private int rows;



    //实时库存列表
    @Action("clxxList")
    public void clxxList() {
        this.renderJson(this.clxxService.findClxxList(clh, xshth, ccrqstart, ccrqend, ccch, zzyhmc, page, rows));
    }

//===============================================

    public String getClh() {
        return clh;
    }

    public void setClh(String clh) {
        this.clh = clh;
    }

    public String getXshth() {
        return xshth;
    }

    public void setXshth(String xshth) {
        this.xshth = xshth;
    }

    public Date getCcrqstart() {
        return ccrqstart;
    }

    public void setCcrqstart(Date ccrqstart) {
        this.ccrqstart = ccrqstart;
    }

    public Date getCcrqend() {
        return ccrqend;
    }

    public void setCcrqend(Date ccrqend) {
        this.ccrqend = ccrqend;
    }

    public String getCcch() {
        return ccch;
    }

    public void setCcch(String ccch) {
        this.ccch = ccch;
    }

    public String getZzyhmc() {
        return zzyhmc;
    }

    public void setZzyhmc(String zzyhmc) {
        this.zzyhmc = zzyhmc;
    }

    public String getClxxzt() {
        return clxxzt;
    }

    public void setClxxzt(String clxxzt) {
        this.clxxzt = clxxzt;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Autowired
    public void setClxxService(ClxxService clxxService) {
        this.clxxService = clxxService;
    }
}
